package org.dromara.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.system.domain.XfNews;
import org.dromara.system.domain.XfUserReview;
import org.dromara.system.domain.query.XfNewsQuery;
import org.dromara.system.domain.query.XfUserReviewQuery;
import org.dromara.system.domain.vo.XfNewsVo;
import org.dromara.system.domain.vo.XfReviewRatingVo;
import org.dromara.system.domain.vo.XfUserReviewVo;

import java.util.List;

public interface XfUserReviewMapper extends BaseMapperPlus<XfUserReview, XfUserReviewVo> {
    // 查询所有用户评价
    List<XfUserReviewVo> queryList(XfUserReviewQuery query);

//    分页查询所有评价
    Page<XfUserReviewVo> selectPageXfUserReviewList(@Param("page") Page<XfUserReview> page, @Param(Constants.WRAPPER) Wrapper<XfUserReview> queryWrapper);
//    根据id查询对应的评价id,用户评价详情页
    XfUserReviewVo selectXfUserReviewById(@Param("id") Long id);

}
